import request from '@/utils/request'

// 查询家具租赁综合列表
export function listRental(query) {
  return request({
    url: '/find/rental/list',
    method: 'get',
    params: query
  })
}

// 查询家具租赁综合详细
export function getRental(furnitureId) {
  return request({
    url: '/find/rental/' + furnitureId,
    method: 'get'
  })
}

// 新增家具租赁综合
export function addRental(data) {
  return request({
    url: '/find/rental',
    method: 'post',
    data: data
  })
}

// 修改家具租赁综合
export function updateRental(data) {
  return request({
    url: '/find/rental',
    method: 'put',
    data: data
  })
}

// 删除家具租赁综合
export function delRental(furnitureId) {
  return request({
    url: '/find/rental/' + furnitureId,
    method: 'delete'
  })
}
